package com.icangya.DAO;

import com.icangya.domain.ProxyLevel;

import java.util.List;

/**
 * Created by lyt on 2017/6/1.
 */
public interface IProxyLevelDAO extends IBaseDAO<ProxyLevel> {

    /**
     * 通过用户id 获取用户的上级
     * @param uid
     * @return
     */
    ProxyLevel getSuperiorUserByUid(Long uid);

    /**
     * 通过用户openId获取用户的上级
     * @param openId
     * @return
     */
    ProxyLevel getSuperiorUserByOpenId(String openId);

    /**
     * 获取所有的代理信息
     * @return
     */
    List getProxyLevel();

    Long getFirstCount(Long uid);

    Long getSecondCount(Long uid);

    Long getThirdCount(Long uid);


}
